package tyris.service;

import java.rmi.Remote;
import java.rmi.RemoteException;
import java.util.List;

import tyris.bean.Patient;
import tyris.dto.PatientDto;

public interface PatientService extends Remote{
	
	public boolean add(Patient patient) throws RemoteException;
	
	public boolean delete(long patientid) throws RemoteException;
	
	public boolean updatePatient(Patient patient) throws RemoteException;

	public List<Patient> selectByDto(PatientDto pdt) throws RemoteException;
	
	public List<Patient> selectByDtoDesc(PatientDto pdt) throws RemoteException;
	
	public Patient selectByPatientid(long patientid) throws RemoteException;
	
	public List<Patient> selectAll() throws RemoteException;
	
	public long selectMaxPatientID() throws RemoteException;
}
